home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.0
/
Video Toaster v4.0.iso
/
arexx
/
cg
/
batchfonts.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-02-14
|
967b
|
35 lines
/* BatchFonts.rexx -- Load a flipping great wudge of fonts */
/* By Bob Caron © 1994 NewTek, Inc. */
call addlib(CG_AREXX,0)
location=REQ_file("Choose a postscript font","","toaster:PSFonts")
if right(location,1)="/" && right(location,1)=":" then do
call REQ_TELL("You have to choose a font.")
call REMLIB(CG_AREXX)
exit
end
if exists(location)=0 then do
call REQ_TELL("Error... I Can't Load THAT!")
call REMLIB(CG_AREXX)
exit
end
sizes=REQ_STRING("Enter sizes separated by a comma.","")
sizes=translate(sizes,' ',',abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()-_=+\|][{};::/"><,.~`?')
numofonts=words(sizes)
count=1
do until count>numofonts
size=compress(word(sizes,count))
count=count+1
call REQ_BAR("Loading Font:"||count-1)
if loadfont(location,size)=0 then
call req_tell("Error Loading:",location,"[In size:"||size||"]")
end
call REQ_BAR("ToasterCG")
call REMLIB(CG_AREXX)